<template>
  <div>
      <div>
          <h1 class="fine">精品推荐</h1>
      </div>
      <ul v-for="item in $route.params.bastList" :key="item.id">
    <router-link tag="li" class="iphone" :to="`productDetails/${item.id}`">
      <div class="phone">
        <img :src="item.image" />
      </div>
      <div class="phone1">
        <div class="box1">
          <span class="wrap">{{ item.store_name }}</span>
        </div>
        <div class="box2">
          <i>￥{{ item.price }}</i>
        </div>
        <div class="box3">
          <span>￥{{ item.vip_price }}</span>
          <em
            ><img
              src=""
          /></em>
          <b>已售{{ item.sales }}{{ item.unit_name }}</b>
        </div>
        <div class="box4">
          <van-icon class="che" size="15px" name="shopping-cart-o" />
        </div>
      </div>
      <!-- <div>圈圈</div> -->
    </router-link>
  </ul>
  </div>
</template>

<script>
export default {
//   props: {
//     item: {
//       type: Object,
//     },
//     path: {
//       type: String,
//     },
//   },
};
</script>

<style lang="less" scoped>
.fine{
    line-height: 40px;
    background: #eef3fd;
    text-align: center;
    font-size: 16px
}
.iphone {
  border-bottom: 1px solid #f5f5f5;
  position: relative;
  width: 95vw;
  height: 117px;
  display: flex;
  align-items: center;
  .phone {
    padding: 15px;
    width: 90px;
    height: 90px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .phone1 {
    flex: 1;
    padding: 15px 15px 15px 0px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    .box1 {
      vertical-align: top;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      .wrap {
        font-size: 15px;
      }
    }
    .box2 {
      margin-top: 15px;
      color: #fc4141 !important ;
      font-weight: bold;
      i {
        font-size: 17px;
      }
    }
    .box3 {
      color: #282828;
      font-weight: 700;
      margin-top: 5px;
      font-size: 12px;
      em {
        margin-left: 2.5px;
        margin-right: 10px;
        width: 23px;
        height: 10.5px;
        display: inline-block;
        img {
          display: inline-block;
          width: 100%;
        }
      }
      b {
        color: #aaa;
        font-weight: normal;
      }
    }
    .box4 {
      width: 20px;
      height: 20px;
      border: 1px solid red;
      position: absolute;
      right: 15px;
      bottom: 19px;
      border-radius: 50%;
      .che {
        color: red;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
      }
    }
  }
}
</style>